package com.strato.annotation.base.v1_0_0.registry;

import java.lang.reflect.Field;


public class FieldDescriptor extends AbstractAnnotationDescriptor{

	private String fieldName;
	
	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	private ClassDescriptor classDescriptor;

	public ClassDescriptor getClassDescriptor() {
		return classDescriptor;
	}

	public void setClassDescriptor(ClassDescriptor classDescriptor) {
		this.classDescriptor = classDescriptor;
	}

	public void discover(Field field) {
		setFieldName(field.getName());
		setAnnotations(extractAnnotations(field.getAnnotations()));
	}
	
}
